package com.gupaoedu.vip.pattern.strategy;

/**
 * Created by Administrator on 2018/3/19.
 */
public class StrategyTest {

    public static void main(String[] args) {
        ContextStrategy strategy = new ContextStrategy(PayType.WEBCHAT_PAY.get());
        Order order = new Order();
        order.setUid("OR11111");
        order.setAmount(12D);
        order.setOrderId("12");
        PayStatus sp = strategy.pay(order);
        System.out.println(sp);
    }
}
